package com.hzy.oms.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单售后业务对象 oms_aftersale
 *
 * @author zengxin
 * @date 2023-10-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AftersaleBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 会员id
     */
    @NotNull(message = "会员id不能为空", groups = { EditGroup.class })
    private Long memberId;

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空", groups = { EditGroup.class })
    private Long orderId;

    /**
     * 退款金额
     */
    @NotNull(message = "退款金额不能为空", groups = { EditGroup.class })
    private BigDecimal returnAmount;

    /**
     * 售后类型
     */
    @NotNull(message = "售后类型不能为空", groups = { EditGroup.class })
    private Integer type;

    /**
     * 申请状态
     */
    @NotNull(message = "申请状态不能为空", groups = { EditGroup.class })
    private Integer status;

    /**
     * 处理时间
     */
    @NotNull(message = "处理时间不能为空", groups = { EditGroup.class })
    private Date handleTime;

    /**
     * 退货数量
     */
    @NotNull(message = "退货数量不能为空", groups = { EditGroup.class })
    private Integer quantity;

    /**
     * 原因
     */
    @NotBlank(message = "原因不能为空", groups = { EditGroup.class })
    private String reason;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空", groups = { EditGroup.class })
    private String description;

    /**
     * 凭证图片
     */
    @NotBlank(message = "凭证图片不能为空", groups = { EditGroup.class })
    private String proofPics;

    /**
     * 处理备注
     */
    @NotBlank(message = "处理备注不能为空", groups = { EditGroup.class })
    private String handleNote;

    /**
     * 处理人员
     */
    @NotBlank(message = "处理人员不能为空", groups = { EditGroup.class })
    private String handleMan;


}
